<?php
/**
 * notes _post_notes component view.
 *
 * @package    FinalsClub
 * @subpackage notes
 * @author     Colin Hom
 */
?>
<div class="module study-groups">
	<h3 class="gradient light">Contribute To This Course</h3>
	<div class="inner">
		<form method="GET" id="postnotes" action="<?= url_for('notes/new?group_id='.$group_id) ?>">
			<select onChange="$('#postnotes').submit()" name="course_id" STYLE="width:240px">
			<?php
			foreach($group_courses as $key => $group_course): ?>
				<option value="<?=$group_course->getCourseId() ?>"><?=$group_course->getCourse()->getName() ?></option>
	<?php endforeach ?> 
			</select>
		</form>	
	</div>
</div>